-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[jrubyscripting] JRuby scripting initial contribution #11538
Conversation
4d7470a
to
f9b4d35
Compare
f9b4d35
to
8812b80
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR! I had a quick look and noticed these artifact ID mismatches. Maybe it also helps with fixing the build. 🙂
93ad7d6
to
0acab67
Compare
a4e3871
to
4f73030
Compare
...n.jrubyscripting/src/main/java/org/openhab/binding/jrubyscripting/internal/package-info.java
Outdated
Show resolved
Hide resolved
...ting/src/main/java/org/openhab/binding/jrubyscripting/internal/JRubyScriptEngineFactory.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have a few more comments. 🙂
Can you also fix the remaining static analysis warnings (SAT)?
a4a6ce0
to
ffc9556
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe the package name (and the corresponding directory) should be org.openhab.automation.jrubyscripting
...rc/main/java/org/openhab/binding/jrubyscripting/internal/JRubyScriptEngineConfiguration.java
Outdated
Show resolved
Hide resolved
...ting/src/main/java/org/openhab/binding/jrubyscripting/internal/JRubyScriptEngineFactory.java
Outdated
Show resolved
Hide resolved
...n.jrubyscripting/src/main/java/org/openhab/binding/jrubyscripting/internal/package-info.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Brian O'Connell <[email protected]>
b25c5c8
to
d7eb01f
Compare
Can you stop squashing and force pushing your commits @boc-tothefuture? |
Sorry - I am used to projects that want a single commit to be merged. No problem. |
Great! We always squash commits when merging PRs by default after reviewing. Also don't worry about the DCO check, we can also set it to pass manually if somehow not all commits were properly signed off. 🙂 |
...ting/src/main/java/org/openhab/binding/jrubyscripting/internal/JRubyScriptEngineFactory.java
Outdated
Show resolved
Hide resolved
...ting/src/main/java/org/openhab/binding/jrubyscripting/internal/JRubyScriptEngineFactory.java
Outdated
Show resolved
Hide resolved
...ting/src/main/java/org/openhab/binding/jrubyscripting/internal/JRubyScriptEngineFactory.java
Outdated
Show resolved
Hide resolved
...rc/main/java/org/openhab/binding/jrubyscripting/internal/JRubyScriptEngineConfiguration.java
Outdated
Show resolved
Hide resolved
...rc/main/java/org/openhab/binding/jrubyscripting/internal/JRubyScriptEngineConfiguration.java
Outdated
Show resolved
Hide resolved
...ting/src/main/java/org/openhab/binding/jrubyscripting/internal/JRubyScriptEngineFactory.java
Outdated
Show resolved
Hide resolved
...ting/src/main/java/org/openhab/binding/jrubyscripting/internal/JRubyScriptEngineFactory.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The directory in which the java files are located, needs to change from:
org.openhab.automation.jrubyscripting/src/main/java/org/openhab/binding/jrubyscripting/internal
to
org.openhab.automation.jrubyscripting/src/main/java/org/openhab/automation/jrubyscripting/internal
Co-authored-by: Wouter Born <[email protected]>
…g/openhab/binding/jrubyscripting/internal/JRubyScriptEngineFactory.java Co-authored-by: Wouter Born <[email protected]>
…g/openhab/binding/jrubyscripting/internal/JRubyScriptEngineConfiguration.java Co-authored-by: Wouter Born <[email protected]>
Co-authored-by: Wouter Born <[email protected]>
…g/openhab/binding/jrubyscripting/internal/JRubyScriptEngineFactory.java Co-authored-by: Wouter Born <[email protected]>
…g/openhab/binding/jrubyscripting/internal/JRubyScriptEngineFactory.java Co-authored-by: Wouter Born <[email protected]>
Signed-off-by: Jimmy Tanagra <[email protected]>
[jrubyscripting] Add ConfigurableService
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for addressing my comments!
I still have these minor comments left now. 🙂
bundles/org.openhab.automation.jrubyscripting/src/main/feature/feature.xml
Outdated
Show resolved
Hide resolved
...main/java/org/openhab/automation/jrubyscripting/internal/JRubyScriptEngineConfiguration.java
Outdated
Show resolved
Hide resolved
...main/java/org/openhab/automation/jrubyscripting/internal/JRubyScriptEngineConfiguration.java
Outdated
Show resolved
Hide resolved
...g/src/main/java/org/openhab/automation/jrubyscripting/internal/JRubyScriptEngineFactory.java
Outdated
Show resolved
Hide resolved
...g/src/main/java/org/openhab/automation/jrubyscripting/internal/JRubyScriptEngineFactory.java
Outdated
Show resolved
Hide resolved
bundles/org.openhab.automation.jrubyscripting/src/main/resources/OH-INF/config/config.xml
Show resolved
Hide resolved
…g/openhab/automation/jrubyscripting/internal/JRubyScriptEngineConfiguration.java Co-authored-by: Wouter Born <[email protected]>
Co-authored-by: Wouter Born <[email protected]>
…/feature.xml Co-authored-by: Wouter Born <[email protected]>
Signed-off-by: Jimmy Tanagra <[email protected]>
Signed-off-by: Jimmy Tanagra <[email protected]>
Signed-off-by: Jimmy Tanagra <[email protected]>
Signed-off-by: Jimmy Tanagra <[email protected]>
Jruby updates
@wborn can you take another look? @jimtng pushed some change sets that I think address your remaining concerns. From @jimtng PR Comments:
Thanks @jimtng for pushing this over the finish line. Thanks @wborn for the thorough review and guidance. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Many thanks @boc-tothefuture and @jimtng!
It's nice to also have JRuby Scripting
Now that the add-on is merged, it would also be nice if the add-on has an icon in the docs and when it is featured as automation add-on on the website. 🙂 That can be done with a couple of PRs similar like: |
openhab/website#305 |
Maybe @ghys knows a bit more about the legal aspects because he also created #8513. AFAIK the guidelines for using the openHAB logo itself are also still undefined. It might also help to just automatically generate logos based on add-on names. That way the add-on overview looks nicer and it is easier to identify add-ons in the UI. For instance you can make text look cooler using: https://maketext.io/ 😎 |
In https://github.com/openhab/openhab-docs/tree/main/images/addons there is a LICENSE file that explicitly excludes the contents of that directory from being covered by the EPL like the rest of the repo.
We invoke fair use and make some disclaimers, with this I think we're in the clear - especially since we only use these logos to build the website and the new add-on store UI merely links to them. This can be considered "editorial content" (https://www.upcounsel.com/permission-to-use-logo#:~:text=Fair%20use%20includes%20using%20a,or%20associates%20with%20another%20company). |
Also-by: Jimmy Tanagra <[email protected]> Signed-off-by: Brian O'Connell <[email protected]> Signed-off-by: Nick Waterton <[email protected]>
Also-by: Jimmy Tanagra <[email protected]> Signed-off-by: Brian O'Connell <[email protected]> Signed-off-by: Michael Schmidt <[email protected]>
Also-by: Jimmy Tanagra <[email protected]> Signed-off-by: Brian O'Connell <[email protected]>
Also-by: Jimmy Tanagra <[email protected]> Signed-off-by: Brian O'Connell <[email protected]>
Also-by: Jimmy Tanagra <[email protected]> Signed-off-by: Brian O'Connell <[email protected]>
[jruby] JRuby Scripting Binding initial contribution
This is the initial contribution of the JRuby Scripting Binding based on JRuby 9.3.1.0
This is essentially the same as the Jython binding, with the following differences (which are also noted in the readme)